flowchart TD
  subgraph sg0["Loop Processing"]
    direction TB
    n1["Final Result"]
    subgraph sg1["Main Loop"]
      direction TB
      subgraph sg2["Item Processing"]
        direction TB
        n0["Accumulation"]
      end
    end
  end
  n0 --> n1
%%__BAML_SPANMAP__={"n0":{"file_path":"tests/validation_files/headers/for_loops.baml","start_line":10,"start":8,"end_line":10,"end":27},"n1":{"file_path":"tests/validation_files/headers/for_loops.baml","start_line":16,"start":4,"end_line":16,"end":21}}
  click n0 call bamlMermaidNodeClick() "Go to source"
  click n1 call bamlMermaidNodeClick() "Go to source"